/**
 * @description 定义业务路由
 */

import store from '../store'

let menuList = store.getters['common/menuList'].filter(it => !!it.path)
let routes = menuList.map(it => ({path: it.path, component: (() => import('../pages' + it.path))}))
export default routes